package com.xc.freeapp.service;

import java.util.List;
import java.util.Map;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.xc.freeapp.entity.Bookingreg;
import com.xc.freeapp.entity.Bookings;
import com.xc.freeapp.entity.Hospital;
import com.xc.freeapp.entity.Regpatient;
import com.xc.freeapp.exception.BaseException;

public interface BookingregService {
	/**
	 * 我的预约
	 * @param userid
	 * @return  预约信息
	 */
    public List<Bookings> queryAppointment(int userid,PageBounds pageBounds);
    /**
     * 取消预约
     * @param Appointment_id
     */
	public int cancelAppointment(int Appointment_id,String delflag);
	
	public int deleteByPrimaryKey(Integer id);

    public int insert(Bookingreg record)  throws Exception;

    public  Bookingreg selectByPrimaryKey(Integer id);
    
    public Boolean saveBookingRegV2(Bookingreg bookingreg, Hospital hospital,Regpatient regpatient ) throws Exception ;
    /**
	 * 保存预约挂号 
	 * @param booingreg 预约信息
	 * @param regpatient 就诊人信息
	 */
    public Map<String,Object> saveBookingRegAndPaitent(Bookingreg bookingreg,Regpatient regpatient,Hospital hospital) throws Exception;
    
    public Boolean saveBookingReg(Bookingreg bookingreg, Hospital hospital,Regpatient regpatient) throws Exception ;
}
